#include "../../ota/ota_http.h"
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char const *argv[])
{
    char *json = ota_http_getJson(OTA_URL_FILEINFO);
    printf("获取json\n");
    if (json)
    {
        printf("json:%s\n", json);
        free(json);
    }
    ota_http_downLoadFile(OTA_URL_DOWNLOAD, OTA_LOCAL_FILE_PATH);
    return 0;
}
